<template>
  <div>
    <proposer></proposer>
    <div class="header">
      您共推荐了 {{count}} 次，推荐了 {{num}} 个候选人
    </div>
    <div class="bottom">
      <div class="box"
           v-if="isShow">
        <i class="el-icon-thumb"></i>
        <p>还没有推荐记录哦</p>
        <p>赶快到 <span class="list"
                @click="li">职位列表</span> 去推荐吧</p>
      </div>
    </div>
  </div>
</template>

<script>
import proposer from '@/components/proposer.vue'
export default {
  data () {
    return {
      count: 0,
      num: 0,
      isShow: " "
    }
  },
  components: {
    proposer
  },
  methods: {
    li () {
      this.$router.push('/phoneindex')
    },
    pd () {
      if (this.count == 0 && this.num == 0) {
        this.isShow = true
      } else {
        this.isShow = false
      }
    },
  },
  mounted () {
    this.pd()
  }
}
</script>

<style scoped>
div {
  height: 100%;
}
.header {
  height: 40px;
  background: #9b0f15;
  color: #fff;
  font-size: 17px;
  line-height: 40px;
  padding-left: 25px;
}
/* .bottom {
  height: 100vh;
  background: #f6f6f6;
  overflow: hidden;
} */
p {
  margin: 0;
}
.bottom /deep/.el-icon-thumb {
  font-size: 50px;
  margin-bottom: 15px;
}
.list {
  text-decoration: underline;
}
.bottom p {
  font-size: 15px;
  margin-top: 5px;
}
.box {
  text-align: center;
  margin-top: 65px;
}
</style>
